package org.hwua.production.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.hwua.production.domain.Customer;
import org.hwua.production.domain.CustomerExample;
/**
 * 客户管理数据访问层接口
 * @author hwua
 *
 */
public interface CustomerMapper {
	
	//扩展的mapper接口方法
	int deleteBatch(String[] ids);
	
	int changeStatus(String[] ids);
	
	int updateNote(Customer record);
	
	List<Customer> searchCustomerByCustomName(String customName);
	
	List<Customer> searchCustomerByCustomId(String customId);
	
	//逆向工程生成的mapper接口
    int countByExample(CustomerExample example);

    int deleteByExample(CustomerExample example);

    int deleteByPrimaryKey(String customId);

    int insert(Customer record);

    int insertSelective(Customer record);

    List<Customer> selectByExample(CustomerExample example);

    Customer selectByPrimaryKey(String customId);

    int updateByExampleSelective(@Param("record") Customer record, @Param("example") CustomerExample example);

    int updateByExample(@Param("record") Customer record, @Param("example") CustomerExample example);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);
}